package com.ruoyi.welder.service.impl;

import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import com.ruoyi.welder.mapper.WelderTeamInfoMapper;
import com.ruoyi.welder.domain.WelderTeamInfo;
import com.ruoyi.welder.service.IWelderTeamInfoService;
import com.ruoyi.common.core.text.Convert;

/**
 * 焊工所属班组管理Service业务层处理
 * 
 * @author ruoyi
 * @date 2023-01-12
 */
@Service
public class WelderTeamInfoServiceImpl implements IWelderTeamInfoService 
{
    @Autowired
    private WelderTeamInfoMapper welderTeamInfoMapper;

    /**
     * 查询焊工所属班组管理
     * 
     * @param welderId 焊工所属班组管理主键
     * @return 焊工所属班组管理
     */
    @Override
    public WelderTeamInfo selectWelderTeamInfoByWelderId(String welderId)
    {
        return welderTeamInfoMapper.selectWelderTeamInfoByWelderId(welderId);
    }

    /**
     * 查询焊工所属班组管理列表
     * 
     * @param welderTeamInfo 焊工所属班组管理
     * @return 焊工所属班组管理
     */
    @Override
    public List<WelderTeamInfo> selectWelderTeamInfoList(WelderTeamInfo welderTeamInfo)
    {
        return welderTeamInfoMapper.selectWelderTeamInfoList(welderTeamInfo);
    }

    /**
     * 新增焊工所属班组管理
     * 
     * @param welderTeamInfo 焊工所属班组管理
     * @return 结果
     */
    @Override
    public int insertWelderTeamInfo(WelderTeamInfo welderTeamInfo)
    {
        return welderTeamInfoMapper.insertWelderTeamInfo(welderTeamInfo);
    }

    /**
     * 修改焊工所属班组管理
     * 
     * @param welderTeamInfo 焊工所属班组管理
     * @return 结果
     */
    @Override
    public int updateWelderTeamInfo(WelderTeamInfo welderTeamInfo)
    {
        return welderTeamInfoMapper.updateWelderTeamInfo(welderTeamInfo);
    }

    /**
     * 批量删除焊工所属班组管理
     * 
     * @param welderIds 需要删除的焊工所属班组管理主键
     * @return 结果
     */
    @Override
    public int deleteWelderTeamInfoByWelderIds(String welderIds)
    {
        return welderTeamInfoMapper.deleteWelderTeamInfoByWelderIds(Convert.toStrArray(welderIds));
    }

    /**
     * 删除焊工所属班组管理信息
     * 
     * @param welderId 焊工所属班组管理主键
     * @return 结果
     */
    @Override
    public int deleteWelderTeamInfoByWelderId(String welderId)
    {
        return welderTeamInfoMapper.deleteWelderTeamInfoByWelderId(welderId);
    }
}
